package com.hc.service;

import com.hc.bean.OrderDetail;
import com.hc.bean.OrderInfo;
import com.hc.bean.Pager;

import java.util.List;

public interface OrderInfoService {
    /*模糊分页查询*/
    public List<OrderInfo> getOrderInfoList(OrderInfo orderInfo, Pager pager);

    /*模糊查询总记录数*/
    public int getOrderInfoCount(OrderInfo orderInfo);

    /*根据id查询订单信息*/
    public OrderInfo getOrderInfoById(int id);

    /*根据订单id获取订单详情*/
    public List<OrderDetail> getOrderDetailByOid(int oid);

    /*添加新订单*/
    public Boolean addOrder(OrderInfo orderInfo,List<OrderDetail> orderDetailList);


    /*删除订单*/
    public Boolean deleteOrderInfoByOids(String oids);
}
